package PlugIn.loader;

import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;

public class PlugInLoader extends URLClassLoader{
	

	 public URL dir;
	 
	 public PlugInLoader(URL url) {
		super(new URL[0]);
		this.dir = url;
		this.addURL(dir);
	}
	 
	public void addDir(String dir){
		try {
			this.addURL(new URL("file:"+dir));
		} catch (MalformedURLException e) {
			System.out.println("Wrong URL");
		}
	}

 

}